package com.boot.seckill.service;

import com.boot.seckill.domain.RedPacket;
import com.boot.seckill.domain.Result;

/**
 * @Description
 * @Author likz
 * @Date 2024/8/27 11:05
 **/
public interface IRedPacketService {


    /**
     * 获取红包
     * @param redPacketId
     * @return
     */
    RedPacket get(long redPacketId);
    /**
     * 抢红包业务实现
     * @param redPacketId
     * @return
     */
    Result startSeckil(long redPacketId, int userId);

    /**
     * 微信抢红包业务实现
     * @param redPacketId
     * @param userId
     * @return
     */
    Result startTwoSeckil(long redPacketId, int userId);


}
